//弹窗
function showAddOUser(){
    console.log("kkkkkkk");
    // location.href = '[[@{/om/add}]]';
    document.getElementById("showAddOUser").style.display = 'block';
}
function hiden_showAddOUser(){
    document.getElementById("showAddOUser").style.display='none';
}
//点击按钮显示弹窗
$('#button1').click( function () {
    console.log("kkkkkkk");
    showAddOUser();
});
$('#button2').click( function () {
    hiden_showAddOUser();
});
$('#button3').click( function () {
    hiden_showAddOUser();
});

$.get('/om/addRealname',function (data) {
    $.each(data, function (index, value) {
        $('#inputname').append(new Option(value.realname, value.realname));
    });
});

$.get('/om/addGroup',function (data) {
    $.each(data, function (index, value) {
        $('#inputgroup').append(new Option(value.gname, value.gname));
    });
});